package com.eight.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eight.pojo.SysLogininfor;
import com.eight.vo.ComResult;
import com.eight.vo.LoginLogVo;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description: TODO
 * @Author: Van.Planifolia
 * @CreateTime: 2023-02-27  19:56
 * @Version: 1.0
 */
public interface LoginLogService extends IService<SysLogininfor> {

    /**
     * 模糊分页查询
     * @param sysLogininfor 查询条件
     * @param pageIndex 页面索引
     * @param pageSize 页面大小
     * @return 查询的结果
     */
    ComResult fuzzySearch(@RequestBody LoginLogVo sysLogininfor, @PathVariable Integer pageIndex, @PathVariable Integer pageSize);

    /**
     * 查询当前用户最近的登录信息
     * @param username 用户的名字
     * @return 登录信息
     */
    ComResult searchLastLog(String username);

}
